﻿        <div class="span10" id="content">
           <div class="row-fluid">
           	<div class="alert alert-error margin-top grid_11" style="<?php if (isset($error)){echo $error;}else{echo'display:none';}; ?>">
				Une erreur s'est produit durant la suppression.<button type="button" class="close" data-dismiss="alert">&times;</button>
			</div>
			<div class="alert alert-success margin-top grid_11" style="<?php if (isset($success)){echo $success;}else{echo'display:none';}; ?>">
				Données supprimé avec succès.<button type="button" class="close" data-dismiss="alert">&times;</button>
			</div>
            <!-- block -->
            <div class="block">
              <div class="navbar navbar-inner block-header">
                <div class="muted pull-left">Liste des inscrits ( <?php echo $this->db->count_all('landing_user'); ?> )</div>
              </div>
              <div class="block-content collapse in">
                <div class="span12">
                    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
                    <thead>
                      <tr>
                        <th>Adresse Email</th>
                        <th>Date inscrit</th>
                        <th>heure inscrit</th>
                        <th></th>
                      </tr>
                    </thead>
                    <tbody>
                    	<?php 
                    		if ($results != null): 
                    		foreach ($results as $row):
						?>		
						<tr class="odd gradeX">
                        	<td><?php echo $row->landing_mail; ?></td>
                        	<td><?php echo $row->landing_date; ?></td>
                        	<td><?php echo $row->landing_time; ?></td>
                        	<td>
                            <a href="#myModal<?php echo $row->landing_id; ?>" data-toggle="modal" class="btn btn-danger btn-small"><i class="icon-remove icon-white"></i> Supprimer</a>
                       		<div class="modal hide" id="myModal<?php echo $row->landing_id; ?>">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal">×</button>
										<p>Voulez-vous supprimer l'email : <?php echo $row->landing_mail; ?></p>
			
									</div>
								
									<div class="modal-footer">
										<a href="<?php echo site_url('members/delete/'.$row->landing_id); ?>" class="btn btn-primary">Confirmer</a>
										<a href="#" class="btn" data-dismiss="modal">Annuler</a>
									</div>
							</div>
                       </td>
                      </tr>
                      <?php
						endforeach;
              			endif;
                      ?>
                    </tbody>
                  </table>
                </div>
                <a class="btn btn-primary btn-sm" href="" style="float:right;width:200px;margin:20px;" >Nouveau Fournisseur</a>
              </div>
            </div>
        <!-- /block -->
          </div>
        </div>